]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyring: Don't replace an already running prompter
authorStef Walter <stefw@gnome.org>
Sat, 9 Mar 2013 10:09:46 +0000 (11:09 +0100)
committerStef Walter <stefw@gnome.org>
Wed, 13 Mar 2013 06:57:16 +0000 (07:57 +0100)
 * Prompters have state, and cancelling an already prompter will
   cause prompts that are in progress to fail.
 * In addition allow replacement of our shell prompter for debugging
   purposes.

https://bugzilla.gnome.org/show_bug.cgi?id=695485

js/ui/components/keyring.js

index 34d7b6dfd718246f7fc0b8e87917dda1b73081ef..b38888f5a8cf388acb9244d4114e01469fa6162e 100644 (file)
@@ -222,7 +222,7 @@ const KeyringPrompter = new Lang.Class({
     enable: function() {
         this._prompter.register(Gio.DBus.session);
         this._dbusId = Gio.DBus.session.own_name('org.gnome.keyring.SystemPrompter',
-                                                 Gio.BusNameOwnerFlags.REPLACE, null, null);
+                                                 Gio.BusNameOwnerFlags.ALLOW_REPLACEMENT, null, null);
     },
 
     disable: function() {